package com.vincent.sciinfo.service;


import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.TakeMeeting;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-takemeeting", configuration = FeignPassToken.class)
public interface TakeMeetingService {

    @RequestMapping("/takemeeting/selectByMeetingId")
    List<TakeMeeting> selectByMeetingId(@RequestParam Integer meetingid);

    @RequestMapping("/takemeeting/takeMeeting")
    int takeMeeting(@RequestParam int meetingid, @RequestParam String teacherId);
}
